package com.microsec.iot.servlet;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimerTask;

public class MyTask extends TimerTask {
 
	private static SimpleDateFormat sdf = new SimpleDateFormat("dd HH");
	
    @Override
    public void run() {
    	Date date = new Date();
    	String time = sdf.format(date);
    	if("01 00".equals(time) || "1 00".equals(time)) {
    		// TODO
    	}
    }
}
